# Contributor: Luca Weiss <luca@z3ntu.xyz>
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=py3-dasbus
pkgver=1.7
pkgrel=2
pkgdesc="DBus library in Python 3"
url="https://dasbus.readthedocs.io"
arch="noarch"
license="LGPL-2.1-or-later"
depends="python3 py3-gobject3 dbus"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/rhinstaller/dasbus/releases/download/v$pkgver/dasbus-$pkgver.tar.gz"
builddir="$srcdir/dasbus-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
ccf575d28d91ad96de78b8122eaf247182d22cee701859b1da83b2de2793362f164fe609187e8a9586083c55d985d95b6980b9ec291cb10d41d74dec03d8a873  dasbus-1.7.tar.gz
"
